﻿namespace StudentsWithLINQ
{
    public struct Student
    {
        private string firstName;
        private string lastName;
        private byte age;

        public Student(string firstN, string lastN, byte age) : this()
        {
            this.FirstName = firstN;
            this.LastName = lastN;
            this.Age = age;
        }

        public string FirstName
        {
            get
            {
                return this.firstName;
            }

            private set
            {
                this.firstName = value;
            }
        }

        public string LastName
        {
            get
            {
                return this.lastName;
            }

            private set
            {
                this.lastName = value;
            }
        }

        public byte Age
        {
            get
            {
                return this.age;
            }

            private set
            {
                this.age = value;
            }
        }

        public override string ToString()
        {
            return this.FirstName + " " + this.LastName + " " + this.Age;
        }
    }
}